package com.yict.csms.resourceplan.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.yict.csms.system.entity.DataDict;

/**
 * 
 * @author tortoi.huang
 * 
 */
@Entity
@Table(name = "CSMS_RTGC_FL_WHARF_OPTION")
public class RtgcFlWharfOption {

	@Id
	@Column(name = "OPTIONID")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "csms_rtgc_fl_option_seq")
	@SequenceGenerator(name = "csms_rtgc_fl_option_seq", sequenceName = "SEQ_CSMS_RTGC_FL_OPTION", allocationSize = 1, initialValue = 1)
	private Long optionId;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "TIMEID")
	private RtgcFlTime rtgcFlTime;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "DATADICTID")
	private DataDict dataDict;

	@Column(name = "SEGMENT1")
	private Long segment1;

	@Column(name = "SEGMENT2")
	private Long segment2;

	@Column(name = "SEGMENT3")
	private Long segment3;

	@Column(name = "SEGMENT4")
	private Long segment4;

	@Column(name = "SEGMENT5")
	private Long segment5;

	@Column(name = "SEGMENT6")
	private Long segment6;

	@Column(name = "SEGMENT7")
	private Long segment7;

	@Column(name = "SEGMENT8")
	private Long segment8;

	@Column(name = "SEGMENT9")
	private Long segment9;

	@Column(name = "SEGMENT10")
	private Long segment10;

	@Column(name = "CREATEPERSON")
	private Long cpId;

	@Column(name = "CREATEDATE")
	private Date createdate;

	@Column(name = "UPDATEPERSON")
	private Long upId;

	@Column(name = "UPDATEDATE")
	private Date updatedate;

	public Long getOptionId() {
		return optionId;
	}

	public void setOptionId(Long optionId) {
		this.optionId = optionId;
	}

	public RtgcFlTime getRtgcFlTime() {
		return rtgcFlTime;
	}

	public void setRtgcFlTime(RtgcFlTime rtgcFlTime) {
		this.rtgcFlTime = rtgcFlTime;
	}

	public DataDict getDataDict() {
		return dataDict;
	}

	public void setDataDict(DataDict dataDict) {
		this.dataDict = dataDict;
	}

	public Long getSegment1() {
		if (segment1 == null || segment1.equals(""))
			segment1 = 0L;
		return segment1;
	}

	public void setSegment1(Long segment1) {
		this.segment1 = segment1;
	}

	public Long getSegment2() {
		if (segment2 == null || segment2.equals(""))
			segment2 = 0L;
		return segment2;
	}

	public void setSegment2(Long segment2) {
		this.segment2 = segment2;
	}

	public Long getSegment3() {
		if (segment3 == null || segment3.equals(""))
			segment3 = 0L;
		return segment3;
	}

	public void setSegment3(Long segment3) {
		this.segment3 = segment3;
	}

	public Long getSegment4() {
		if (segment4 == null || segment4.equals(""))
			segment4 = 0L;
		return segment4;
	}

	public void setSegment4(Long segment4) {
		this.segment4 = segment4;
	}

	public Long getSegment5() {
		if (segment5 == null || segment5.equals(""))
			segment5 = 0L;
		return segment5;
	}

	public void setSegment5(Long segment5) {
		this.segment5 = segment5;
	}

	public Long getSegment6() {
		if (segment6 == null || segment6.equals(""))
			segment6 = 0L;
		return segment6;
	}

	public void setSegment6(Long segment6) {
		this.segment6 = segment6;
	}

	public Long getSegment7() {
		if (segment7 == null || segment7.equals(""))
			segment7 = 0L;
		return segment7;
	}

	public void setSegment7(Long segment7) {
		this.segment7 = segment7;
	}

	public Long getSegment8() {
		if (segment8 == null || segment8.equals(""))
			segment8 = 0L;
		return segment8;
	}

	public void setSegment8(Long segment8) {
		this.segment8 = segment8;
	}

	public Long getSegment9() {
		if (segment9 == null || segment9.equals(""))
			segment9 = 0L;
		return segment9;
	}

	public void setSegment9(Long segment9) {
		this.segment9 = segment9;
	}

	public Long getSegment10() {
		if (segment10 == null || segment10.equals(""))
			segment10 = 0L;
		return segment10;
	}

	public void setSegment10(Long segment10) {
		this.segment10 = segment10;
	}

	public Long getCpId() {
		return cpId;
	}

	public void setCpId(Long cpId) {
		this.cpId = cpId;
	}

	public Date getCreatedate() {
		return createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}

	public Long getUpId() {
		return upId;
	}

	public void setUpId(Long upId) {
		this.upId = upId;
	}

	public Date getUpdatedate() {
		return updatedate;
	}

	public void setUpdatedate(Date updatedate) {
		this.updatedate = updatedate;
	}
}
